home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindlink.net!news
- From: genew@mindlink.bc.ca (Gene Wirchenko)
- Newsgroups: comp.lang.c
- Subject: Re: HELP!! BAMBOOZLED BEGINNER!!
- Date: Sat, 03 Feb 1996 06:50:19 GMT
- Organization: MIND LINK! - British Columbia, Canada
- Message-ID: <4ev0n2$jeq@fountain.mindlink.net>
- References: <Pine.OSF.3.91l.960130235948.20497A-100000@saul3.u.washington.edu> <4eru59$s8t@gryphon.phoenix.net> <TANMOY.96Feb2114543@qcd.lanl.gov> <4etv35$nvf@gryphon.phoenix.net>
- NNTP-Posting-Host: line070.nwm.mindlink.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- brucew@phoenix.net (Bruce Wedding) wrote:
-
- >> change this to scanf("%U", &i);
- >>
- >>What is %U? Did you mean %lu?
-
- >Well, that is what I had originally. In my quest to make sure it
- >was correct, I mistakenly assumed that Borland wouldn't add
- >extensions to an ANSI function. :(
-
- >> scanned = scanf("%U*%c", &power);
-
- >> Did you mean %*c by any chance?
-
- >Indeed I did Tanmoy. Good eye. You know, sometimes I wish this
- >undefined behavior resulted in the catastrophies that it is
- >always claimed to. Then this code would have never been posted
- >incorrectly.
-
- It isn't claimed that it does happen, just that it could. Ah, I
- can see it now in alpha testing:
-
- test(6): Fatal error: expression x=x++ has undefined behavior - hard
- disk has already been reformatted. You do have a current backup,
- don't you?
-
- >Bruce D. Wedding Have Compiler, Will Travel!
- > Perspicacious Programming Performed Promptly
- and Perfectly [If you want to keep your hard disk <G>]
- >Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
-
- Sincerely,
-
- Gene Wirchenko
-
- C Pronunciation Guide:
- y=x++; "wye equals ex plus plus semicolon"
- x=x++; "ex equals ex doublecross semicolon"
-
-